package net.xdclass.sp.proxyJdk;

import net.xdclass.sp.proxyStatic.PayService;
import net.xdclass.sp.proxyStatic.PayServiceImpl;

public class ProxyTest {
    public static void main(String [] args){
        //JDK动态代理
        JdkProxy jdkProxy = new JdkProxy();
        //获取代理类对象
        PayService payServiceProxy = (PayService)jdkProxy.newProxyInstance(new PayServiceImpl());
        //调用目标方法
        payServiceProxy.callback("dsfsdfdsfew");
//        payServiceProxy.save(23,42423);

    }


}
